﻿/*----------------------------------------------------------------
    // Copyright (C) 2009 江苏华招网
    // 版权所有。 
    // 作者：庄金冬 
    //
    // 文件名：PurchaseOrderDetail.cs
    // 文件功能描述：有采购单明细视图实体类
    // 创建标识：庄金冬2009-04-03 16:31:28
    //
    // 修改标识：
    // 修改描述：
    //
    // 修改标识：
    // 修改描述：
    //
    // 审核人：
    // 审核时间：
    // 审核说明：
 //----------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.DrugTrade.Model.View
{
    /// <summary>
    /// 采购单明细实体类
    /// </summary>
    [Serializable]
    public class PurchaseOrderDetail
    {
        /// <summary>
        /// 采购单明细ID
        /// </summary>
        public string OrderDetailID
        {
            get;
            set;
        }

        /// <summary>
        /// 当前流程
        /// </summary>
        public string FlowName
        {
            get;
            set;
        }

        /// <summary>
        /// 流程ID
        /// </summary>
        public string FlowID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单ID
        /// </summary>
        public string OrderID
        {
            get;
            set;
        }

        /// <summary>
        /// 医疗机构ID
        /// </summary>
        public string HospitalID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单名
        /// </summary>
        public string OrderName
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单总金额
        /// </summary>
        public decimal? TotalAmount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单起始时间
        /// </summary>
        public System.DateTime? StartTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单结束时间
        /// </summary>
        public System.DateTime? PlanEndTime
        {
            get;
            set;
        }

        /// <summary>
        /// 建单人
        /// </summary>
        public string PlanPerson
        {
            get;
            set;
        }

        /// <summary>
        /// 建立时间
        /// </summary>
        public System.DateTime? PlanTime
        {
            get;
            set;
        }

        /// 医疗机构名
        /// </summary>
        public string HospitalName
        {
            get;
            set;
        }

        /// <summary>
        /// 地区ID
        /// </summary>
        public string AreaID
        {
            get;
            set;
        }

        /// <summary>
        /// 商品ID
        /// </summary>
        public string GoodsID
        {
            get;
            set;
        }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Outlookc
        {
            get;
            set;
        }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            get;
            set;
        }
        /// <summary>
        /// 包装单位
        /// </summary>
        public string PackUnit
        {
            get;
            set;
        }
        /// <summary>
        /// 材质
        /// </summary>
        public string Material { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public string SortName
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业
        /// </summary>
        public string CompanyName_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业
        /// </summary>
        public string CompanyName_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 产品名称 
        /// </summary>
        public string GoodsName
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数
        /// </summary>
        public int? Factor
        {
            get;
            set;
        }

        /// <summary>
        /// 包装
        /// </summary>
        public string Pack
        {
            get;
            set;
        }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductID
        {
            get;
            set;
        }

        /// <summary>
        /// 目录编号
        /// </summary>
        public string SortID
        {
            get;
            set;
        }
        /// <summary>
        /// 生产企业编号
        /// </summary>
        public string CompanyID_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业编号
        /// </summary>
        public string CompanyID_TB
        {
            get;
            set;
        }
        /// <summary>
        /// 父级分类号
        /// </summary>
        public string ParentSortID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录编号
        /// </summary>
        public string ProcureCatalogID
        {
            get;
            set;
        }
        /// <summary>
        /// 采购项目编号
        /// </summary>
        public string ProjectID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? ProcurePrice
        {
            get;
            set;
        }

        /// <summary>
        /// 是否启用（0否;1是）
        /// </summary>
        public bool? IsUsing
        {
            get;
            set;
        }
        /// <summary>
        /// 状态（是否流程中）（0否;1是）
        /// </summary>
        public bool? IsFlowing
        {
            get;
            set;
        }
        /// <summary>
        /// 目录来源:0正常添加;1临时采购
        /// </summary>
        public int? SortSource
        {
            get;
            set;
        }

        /// <summary>
        /// 采购项目名称
        /// </summary>
        public string ProjectName
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业编号
        /// </summary>
        public string CompanyID_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业名称
        /// </summary>
        public string CompanyName_PS
        {
            get;
            set;
        }


        /// <summary>
        /// 当前执行节点:在开始制定采购单时，根据选择的流程，将流程首节点写入;在流程的执行过程中,当当前节点对应的操作执行完毕,则将下一个节点写入(或者返回上一个节点)
        /// </summary>
        public string CurrentNode
        {
            get;
            set;
        }

        /// <summary>
        /// 采购数量
        /// </summary>
        public int? PurchaseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? Price
        {
            get;
            set;
        }

        /// <summary>
        /// 采购金额
        /// </summary>
        public decimal? Amount
        {
            get;
            set;
        }

        /// <summary>
        /// 执行时间
        /// </summary>
        public System.DateTime? ExecuteTime
        {
            get;
            set;
        }

        /// <summary>
        /// 状态标识:0未确认;1已提交;2已确认（已确认的采购单，就不可以再修改了）
        /// </summary>
        public int? OrderDetailState
        {
            get;
            set;
        }

        /// <summary>
        /// 已配送数量
        /// </summary>
        public int? DistributeCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量
        /// </summary>
        public int? WarehouseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已退货数量
        /// </summary>
        public int? ReturnCount
        {
            get;
            set;
        }
        
        /// <summary>
        /// 入库总金额
        /// </summary>
        public decimal? WarehouseAmount
        { get; set; }
        /// <summary>
        /// 配送总额
        /// </summary>
        public decimal? DistributeAmount
        { get; set; }
        /// <summary>
        /// 质量层次
        /// </summary>
        public string QualityLevel { get; set; }
        /// <summary>
        /// 入库时间
        /// </summary>
        public System.DateTime? WarehouseTime
        {
            get;
            set;
        }
        /// <summary>
        /// 产品名称 拼音码
        /// </summary>
        public string PinyinCode { get; set; }
        /// <summary>
        /// 五笔码
        /// </summary>
        public string WBCode { get; set; }
        /// <summary>
        ///拒绝配送理由
        /// </summary>
        public string Reason
        {
            get;
            set;
        }
        /// <summary>
        /// 导出状态
        /// </summary>
        public string orderdetailstatedc { get; set; }
        public int? packcount { get; set; } //包装数量
        public int? count { get; set; } //最小计量数量
        public string unitcount { get; set; }//最小计价单位
        public string companyname_sc_tb { get; set; }//生产、投标企业
    }
}